package cn.tedu.egmvc2.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

//定义枚举类
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StateCode {
    //定义状态码
    OPERATION_SUCCESS(2000,"操作成功"),
    OPERATION_FAILED(3000,"操作失败"),
    ID_ISNOT_EXISTS(4000,"不存在"),
    VALIDATED_ERROR(8888,"参数校验错误");
    //定义两个属性
    private Integer state;
    private String message;
}
